#include<stdio.h>
#include<string.h>
#include<unistd.h>
#include<fcntl.h>


int main(){
   int fd =  open("../fifo",O_WRONLY);
   if(fd<0){     
    perror("open");
    return 0;
   }
   while(1){
   const char*lp ="I am process A";
       write(fd,lp,strlen(lp));
        sleep(2);
   } 
   close(fd);
   return 0;
}
